import { post, get } from '@/api'

export const login = (data) => {
  return new Promise(resolve => {
    resolve(post('/vue-next-element-plus-admin/user/login', data, { showLoading: false }))
  })
}

export const getUserInfo = (data) => {
  return new Promise(resolve => {
    resolve(get('/vue-next-element-plus-admin/user/get-userinfo', data, { showSuccessMsg: false }))
  })
}
